home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Burning & Media
/
GB-PVR 1.2.13
/
GBPVR10213.msi
/
Cabs.w1.cab
/
GuideListingShowTimes.cs464
< prev
next >
Wrap
Text File
|
2007-02-14
|
5KB
|
151 lines
/// <summary>
/// This object is used to display the top line of the guide which contains the times and previous and
/// next buttons
/// </summary>
namespace gbweb.classes
{
public class GuideListingShowTimes
{
private const string showtimes_corner_fill1 = "<div class=\"";
private string showtimes_cornerClass = "timeSlot";
private const string showtimes_corner_fill2 = "\" style=\"width:";
private int showtimes_cornerWidth = 7;
private const string showtimes_corner_fill3 = "%;\"><p> </p></div>";
private const string showtimes_fill1 = "<div class=\"";
private string showtimes_Class = "timeSlot";
private const string showtimes_fill2 = "\" style=\"";
private string showtimes_Style = "margin-left: ";
private int showtimes_Margin = 0;
private const string showtimes_fill3 = "%; width:";
private int showtimes_Width = 0;
private const string showtimes_fill4 = "%;\"><span class=\"time\">";
private string showtimes_Time = "";
private const string showtimes_fill5 = " </span></div>";
private const string left_scroll = "%;\"><div id=\"BACK_BUTTON\" title=\"Back\"><a id=\"_ctl0_viewleftbutton\" href=\"javascript:__doPostBack('viewleftbutton','')\">Back</a></div></div>";
public GuideListingShowTimes()
{
}
public GuideListingShowTimes(string CornerClass, int CornerWidth, string ShowtimesClass, string ShowtimesStyle,
int ShowtimesMargin, int ShowtimesWidth, string ShowtimesTime)
{
showtimes_cornerClass = CornerClass;
showtimes_cornerWidth = CornerWidth;
showtimes_Class = ShowtimesClass;
showtimes_Style = ShowtimesStyle;
showtimes_Margin = ShowtimesMargin;
showtimes_Width = ShowtimesWidth;
showtimes_Time = ShowtimesTime;
}
public string getShowtimesCornerLine(bool ShowLeftScroll)
{
string dispLine = string.Empty;
dispLine += showtimes_corner_fill1;
dispLine += showtimes_cornerClass;
dispLine += showtimes_corner_fill2;
dispLine += showtimes_cornerWidth;
if (ShowLeftScroll)
{
dispLine += left_scroll;
}
else
{
dispLine += showtimes_corner_fill3;
}
return dispLine;
}
public string getShowtimesLine()
{
string dispLine = string.Empty;
dispLine += showtimes_fill1;
dispLine += showtimes_Class;
dispLine += showtimes_fill2;
dispLine += showtimes_Style;
dispLine += showtimes_Margin;
dispLine += showtimes_fill3;
dispLine += showtimes_Width;
dispLine += showtimes_fill4;
dispLine += showtimes_Time;
dispLine += showtimes_fill5;
return dispLine;
}
public string getCornerClass()
{
return showtimes_cornerClass;
}
public void setCornerClass(string a)
{
showtimes_cornerClass = a;
}
public int getCornerWidth()
{
return showtimes_cornerWidth;
}
public void setCornerWidth(int a)
{
showtimes_cornerWidth = a;
}
public string getShowtimesClass()
{
return showtimes_Class;
}
public void setShowtimesClass(string a)
{
showtimes_Class = a;
}
public string getShowtimesStyle()
{
return showtimes_Style;
}
public void setShowtimesStyle(string a)
{
showtimes_Style = a;
}
public int getShowtimesMargin()
{
return showtimes_Margin;
}
public void setShowtimesMargin(int a)
{
showtimes_Margin = a;
}
public int getShowtimesWidth()
{
return showtimes_Width;
}
public void setShowtimesWidth(int a)
{
showtimes_Width = a;
}
public string getShowtimesTime()
{
return showtimes_Time;
}
public void setShowtimesTime(string a)
{
showtimes_Time = a;
}
}
}